<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>My JSP starting page</title>
    
    <%--
    测试为http://localhost:8060/hg/demo/dgmValidate.jsp
    
    formatclass='15,^\d+$,1' 第一个为长度，第二个为格式，第三个是判断是否必填，1为必填，0为选填
	--%>
		
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	
<%--
dgm这个js加上
--%>

	<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> 
<script type="text/javascript" src = "common/dgmValidateJS.js"></script>

	<%--
	这是demo的js
	--%>
<script type="text/javascript" src = "demo/dgmValidate.js"></script>

	
	</head>
	<body>
	
	<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr class="trtab">
            <td class="tdtab" >
            	<span class="tdspan"><span style="color:red">*</span>手机号码：</span>
            	<input type="text"  id="uPhone"  tabindex="5" formatclass='15,^\d+$,1' />
            	<span class='input_check' ></span>
			</td>
			
            <td class="tdtab" ><span class="tdspan">固定电话：</span>
            <%--
            	dgm下面要加一个formatclass
            	--%>
            <input type="text"  id="uTel"  tabindex="6"  formatclass='15,^\d+$,0' />
            <%--
          	  dgm下面再加一个span
            --%>
            	<span class='input_check' ></span>
			</td>
          </tr>
          
           <tr class="trtab">
          	<td align="center" colspan="2"> 
          		<input id="submit" type="button" value="提交"/> 
          		<span style="padding-left:20">
          		<input id="return" type="button" onclick="window.location.href='users.jsp'" value="返回"/></span>
          	</td>
          </tr>
 	 </table>

	</body>
</html>